<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<c:set value="${pageContext.request.contextPath}" var="app" />
<link rel="stylesheet" type="text/css" href="${app}/style/style.css">
</head>
<body>
	<div id="wrap">

		<!-- 头部 -->
		<jsp:include page="../common/header.jsp">
			<jsp:param value="special" name="css" />
		</jsp:include>

		<div class="center_content">
			<div class="left_content">

				<div class="title">
					<span class="title_icon"><img src="${path }/images/bullet1.gif"
						alt="" title="" /></span>特价图书
				</div>
				<!-- 把特价图书迭代出来 -->
				<c:forEach var="book" items="${specialBook.datas}">
					<div class="feat_prod_box">

						<div class="prod_img">
							<a href="${path}/book/detail?id=${book.id}">
							<img src="${path }/images/book_img/${book.imgUrl}" alt=""
								title="" border="0"  style="width:98px;height:150px;"/></a>
						</div>

						<div class="prod_det_box">
							<span class="special_icon"><img
								src="${path }/images/special_icon.gif" alt="" title="" /></span>
							<div class="box_top"></div>
							<div class="box_center">
								<div class="prod_title">图书名称:&nbsp;&nbsp;${book.bookName }</div>
								<p class="details">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;者：${book.author }</p>
								<p class="details">出&nbsp;&nbsp;版&nbsp;&nbsp;社：${book.publish}</p>
								<p class="details">出版日期：${book.publishDate}</p>
								<p class="details">价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格：${book.price}元</p>
								<a href="${path}/book/detail?id=${book.id}" class="more">- 更多信息 -</a>
								<div class="clear"></div>
							</div>

							<div class="box_bottom"></div>
						</div>
						<div class="clear"></div>
					</div>
				</c:forEach>

				<!-- 分页 -->
				<div class="pagination">
					<span class="disabled"></span>
					<c:forEach var="pb" begin="1" end="${specialBook.pageNum}">
						<span class="${specialBooks.current eq pb ? 'current' : ''}">
						<a href="${path}/book/special?page=${pb}">${pb}</a></span>
					</c:forEach>
				</div>
				<div class="clear"></div>
			</div>
			<!--end of left content-->

			<!-- start right content -->
			<%@ include file="../common/aside.jsp"%>
			<!--end of right content-->

			<div class="clear"></div>
		</div>
		<!--end of center content-->

		<!-- 网站尾部 -->
		<%@ include file="../common/foot.jsp"%>
		<!-- 网站尾部 -->

	</div>
</body>
</html>